/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelLayer;
import java.util.ArrayList;
/**
 *
 * @author Gruppe 4
 */
public class Person {
    
    private int personId;
    private String fName;
    private String lName;
    private String address;
    private int zipCode;
    private String city;
    private String phoneNumber;
    private String mobileNumber;
    private String email;
    private ArrayList<Order> orders;
    
    
    public Person(int personId, String fName, String lName, String address, int zipCode, String city, String phoneNumber, String mobileNumber, String email) {
        this.personId = personId;
        this.fName = fName;
        this.lName = lName;
        this.address = address;
        this.zipCode = zipCode;
        this.city = city;
        this.phoneNumber = phoneNumber;
        this.mobileNumber = mobileNumber;
        this.email = email;
        orders = new ArrayList<Order>();
    }
    
    public Person(int personId)
    {
        this.personId = personId;
    }
    
    public Person()
    {}

    /**
     * @return the fname
     */
    public String getfName() {
        return fName;
    }

    /**
     * @param fname the fname to set
     */
    public void setfName(String fName) {
        this.fName = fName;
    }

    /**
     * @return the lName
     */
    public String getlName() {
        return lName;
    }

    /**
     * @param lName the lName to set
     */
    public void setlName(String lName) {
        this.lName = lName;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the zipCode
     */
    public int getZipCode() {
        return zipCode;
    }

    /**
     * @param zipCode the zipCode to set
     */
    public void setZipCode(int zipCode) {
        this.zipCode = zipCode;
    }

    /**
     * @return the city
     */
    public String getCity() {
        return city;
    }

    /**
     * @param city the city to set
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * @return the phoneNumber
     */
    public String getPhoneNumber() {
        return phoneNumber;
    }

    /**
     * @param phoneNumber the phoneNumber to set
     */
    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the orders
     */
    public Order getOrders(int index) {
        return orders.get(index);
    }

    /**
     * @param orders the orders to set
     */
    public void setOrders(Order order) {
        orders.add(order);
    }
    
    /**
     * 
     * @param ArrayList of orders
     */
    public void setOrderArray(ArrayList<Order> orders)
    {
        this.orders = orders;
    }

    /**
     * @return the mobileNumber
     */
    public String getMobileNumber() {
        return mobileNumber;
    }

    /**
     * @param mobileNumber the mobileNumber to set
     */
    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }

    /**
     * @return the personId
     */
    public int getPersonId() {
        return personId;
    }

    /**
     * @param personId the personId to set
     */
    public void setPersonId(int personId) {
        this.personId = personId;
    }
    
}
